<%= simple_form_for [:admin, @category], :defaults => { :input_html => { :class => "form-control" } }, html: { multipart: true, class: 'form-horizontal' } do |f| %> 

	<%= f.input :name, collection: Article::CATEGORIES + Product::CATEGORIES + ["视频"] %>
	<%= f.input :tags, hint: "用逗号隔开标签" %>
  <%= f.input :cover, :input_html => { :class => "btn btn-default" }, label: "图片", hint: "图片大小必须小于10k, 左右焦点图宽高比为146x26"  %> 
  <%= f.button :wrapped, value: "commit" %>  
<% end %>

<%= javascript_tag do %>
  $('#category_tags').select2();
<% end %>
